<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="script/common.js"></script>
<title>客户管理系统</title>
</head>
<body>
<form action="serviceinfo/servicegetNewAction_get.action" method="post" name="queryAllNewServiceForm"></form>
<div class="page_title">客户服务管理 > 服务分配</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="queryAllNewServiceForm.submit();">查询</button>  
</div>
<table class="query_form_table" height="53">
	<tr>
		<th height="28">客户</th>
		<td><input /></td>
		<th height="28">概要</th>
		<td><input /></td>
		<th height="28">服务类型</th>
		<td>
			<select name="D1">
				<option>全部</option>
				<option>咨询</option>
				<option>建议</option>
				<option>投诉</option>
			</select>
		</td>
	</tr>
	<tr>
		<th height="22">创建日期</th>
		<td colspan="3">
			<input name="T2" size="10" /> - <input name="T1" size="10" /></td>
		<th height="22">状态</th>
		<td>
			<select name="D1">
				<option selected>新创建</option>
			</select>
		</td>
	</tr>
</table>
<br />
<table class="data_list_table">
	<tr>
		<th>编号</th>
		<th>客户</th>
		<th>概要</th>
		<th>服务状态</th>
		<th>创建人</th>
		<th>创建日期</th>
		<th>分配给</th>
		<th>操作</th>
	</tr>
	<s:iterator value="#session.newserviceList" var="list">
	<tr>
		<td class="list_data_number"><s:property value="#list.svrId"/></td>
		<td class="list_data_text"><s:property value="#list.svrCustName"/></td>
		<td class="list_data_ltext"><s:property value="#list.svrTitle"/></td>
		<td class="list_data_text"><s:property value="#list.svrStatus"/></td>
		<td class="list_data_text"><s:property value="#list.svrCreateBy"/></td>
		<td class="list_data_text"><s:property value="#list.svrCreateDate"/></td>
		<td class="list_data_text">
			<s:select name="D2" theme="simple" list="#session.userlist" listValue="username">
			</s:select>
			<s:a href="serviceinfo/servicedispatchAction.action?cstServiceInfo.svrId=%{#list.svrId}">
			分配
			</s:a>
			
		</td>
		<td class="list_data_op">
			<s:a href="serviceinfo/servicedeleteAction.action?cstServiceInfo.svrId=%{#list.svrId}">
			<img src="images/bt_del.gif" class="op_button"/>  	
			</s:a>
		</td>
	</tr>
	</s:iterator>
	
	<tr>
		<th colspan="8" class="pager">
<div class="pager">
	共${newviceListCount}条记录 每页<input value="100" size="2" />条
	第<input value="1" size="2"/>页/共1页
	<a href="#">第一页</a>
	<a href="#">上一页</a>
	<a href="#">下一页</a>
	<a href="#">最后一页</a>
	转到<input value="1" size="2" />页
	<button width="20" onclick="reload();">GO</button>
</div>
		</th>
	</tr>
</table>
</body>
</html>